Documentation on calc
Task: calc
Purpose: A calculator program.
Categories: tools
CALC is a calculator program. An expression is given in FORTRAN
like syntax, and the result printed out.
Usage:
calc [-ir] [-f xxx] expression
-i Print the result as an integer.
-f xxx Print the result using FORTRAN format xxx.
-r Treat the input as a single integer, and
print it out in various radix formats.
The input integer can be in a radix format.
A %x introduces a hex number, %o an octal and
%b a binary.
expression A FORTRAN-like expression (except if the -r
flag is given).
NOTE: An asterisk and brackets are special
characters to some UNIX shells. These characters
may need to be escaped or quoted when giving the
expression.
Generated by rsault@atnf.csiro.au on 11 Jul 1996